
import * as puppeteer from 'puppeteer'
import { PuppeteerBase } from './PuppeteerBase';
export class PuppeteerInput extends PuppeteerBase {

    //输入值
    async typeValue(InputSelector: string, Value: string, SearchUrl?: string) {

        //获取元素
        try {
            if(SearchUrl){
                this.getAllRequest();
            }
            await this.isdomsNotFound(InputSelector);
            let dom = await this.getdom(InputSelector);
            dom.type(Value);
        } catch (error) {
            throw error;
        }
    }
}